package IMIC.NGUYENVANDOAN.OOP.INHERISTANCES.DEMO;

public class THIS_DEMO {
    private int RollNo;
    private String FullName;

    public static void main(String[] args) {
        System.out.println("Demo sử dụng con trỏ hàm trong Java:");
        new Thread() {
            private double Mark;

            @Override
            public void run() {
                this.Mark = 8.5;
                this.hashCode();
            };

            @Override
            public int hashCode() {
                return super.hashCode();
            }
        }.start();
    }

    public void Test(int RollNo, String FullName) {
        this.RollNo = 1;
        this.FullName = "Nguyễn Văn A";
    }
}
